//
//  PayPlug.h
//  PayDemo
//
//  Created by sam on 15/11/2.
//  Copyright © 2015年 sam. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "AlipaySDK/AlipaySDK.h"
#import "PayConfig.h"

typedef void (^PayResult)(PayWay way, id obj, NSError *error);

@interface PayPlug : NSObject 
@property (nonatomic, copy)  NSString *sn;//订单号
@property (nonatomic, copy)  NSString *productTitle;//标题
@property (nonatomic, copy)  NSString *productDesc;//产品详情
@property (nonatomic, copy)  NSString *productPrice;//产品价格 单位分
@property (nonatomic, copy)  NSString *notiUrl;//通知地址
@property (nonatomic, assign)  PayWay payWay;//支付方式

+ (instancetype)sharedInstance;

- (void)doPay:(PayResult)blcok;

@end
